package licode.unisop.platform.client.info;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 定义平台对外的结构信息
 *
 * @author WR
 */
@Data
public class PlRoleInfo {
    private String id;
    /**
     * 租户标识
     */
    private String tenantId;
    private String platformId;
    private String code;
    private String name;
    private String comment;

    /**
     * 是否可编辑（0：不可编辑，1：可编辑）
     */
    private int canEdit;

    /**
     *父角色ID
     */
    private String parentId;

    /**
     * 角色所属分组
     */
    private String roleGroup;

    private List<String> menus;
    private List<String> permits;
    private List<String> permitGroup;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    private List<PlRoleInfo> children;

    public PlRoleInfo() {
        menus = new ArrayList<>();
        permits = new ArrayList<>();
    }
}
